package com.scnb.bridge.v4;

public class GG {

    public void chase(MM mm) {
        //m+n的发展
        Gift g1 = new WarmGift(new Flower());
        Gift g4 = new WildGift(new Flower());
        Gift g2 = new WildGift(new Book());
        Gift g3 = new WarmGift(new Book());

        //give(mm, g);
    }

    public void give(MM mm, Gift g) {
        System.out.println(g + "gived");
    }

}
